home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Graphics Programming (2nd Edition) / Visual Basic Graphics Programming 2nd Edition.iso / Src / Ch9 / Sprite.cls < prev    next >
Encoding:
Visual Basic class definition  |  1999-05-28  |  686 b   |  28 lines

  1. VERSION 1.0 CLASS
  2. BEGIN
  3.   MultiUse = -1  'True
  4.   Persistable = 0  'NotPersistable
  5.   DataBindingBehavior = 0  'vbNone
  6.   DataSourceBehavior  = 0  'vbNone
  7.   MTSTransactionMode  = 0  'NotAnMTSObject
  8. END
  9. Attribute VB_Name = "Sprite"
  10. Attribute VB_GlobalNameSpace = False
  11. Attribute VB_Creatable = True
  12. Attribute VB_PredeclaredId = False
  13. Attribute VB_Exposed = False
  14. ' Generic sprite class.
  15. Option Explicit
  16.  
  17. ' Draw the sprite on the PictureBox.
  18. Public Sub DrawSprite(ByVal pic As PictureBox)
  19.  
  20. End Sub
  21.  
  22. ' Move the sprite keeping it in bounds.
  23. Public Sub MoveSprite(ByVal xmin As Integer, ByVal xmax As Integer, ByVal ymin As Integer, ByVal ymax As Integer)
  24.  
  25. End Sub
  26.  
  27.  
  28.